package com.xunfang.servlet;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.lang.reflect.Array;
import java.util.Arrays;
import java.util.Map;
import java.util.Set;

@WebServlet("/accept")
public class acceptServlet extends BaseServlet{
    public void acceptInfo(HttpServletRequest req, HttpServletResponse resp) {
        Map<String, String[]> map = req.getParameterMap();
        Set<String> set = map.keySet();
        for (String key : set) {
            System.out.println(key + "..." + Arrays.toString(map.get(key)));
        }
    }

}
